package com.competition.web.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import com.common.util.CopyEntity;

/**
 * 应用启动入口 Created by macro on 2018/4/26.
 */
@SpringBootApplication(scanBasePackages = { "com.competition.web.admin", "com.security" })
@EnableTransactionManagement(proxyTargetClass = true)
@MapperScan({ "com.competition.web.admin.mapper", "com.competition.web.admin.dao" })
public class SelectDistanceByAdminApplication {

	public static void main(String[] args) {

		CopyEntity.closeOut();
		
		SpringApplication.run(SelectDistanceByAdminApplication.class, args);
	}

	/**
	 * 文件上传配置
	 *
	 * @return
	 */
//	@Bean
//	public MultipartConfigElement multipartConfigElement() {
//		MultipartConfigFactory factory = new MultipartConfigFactory();
//		// 单个数据大小
//		factory.setMaxFileSize(DataSize.ofMegabytes(100)); // KB,MB
//		/// 总上传数据大小
//		factory.setMaxRequestSize(DataSize.ofMegabytes(1000));
//		return factory.createMultipartConfig();
//	}
}
